<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%
String name = (String) session.getAttribute("uname");
if (name==null){response.sendRedirect("/Test_Project/login.jsp");}
%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>

<head>
<base href=" <%=basePath%>">
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>工作室</title>
  <link rel="stylesheet" href="res/layui/css/layui.css"   media="all">
  <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="bootstrap/css/nav_no_content.css">
  <style>
  .layui-layout-body{
  margin-top:20px;
  
  }
  
#i {
height: 25px;
border: none;
border-bottom: 1px solid black;
background-color: transparent;
outline: none;
}  	
  </style>
  
</head>


<body class="layui-layout-body">
  
  <div id="content"" >
  	<form action="/Test_Project/com/test/servlet/Article_in_servlet">
  	
  		
    		<legend>添加用例</legend>
		用例编号：<input type=text  placeholder="用例编号"  name="count" id="i"><br>
		<br>
		用例标题：<input type=text  placeholder="用例标题"  name="article_title" id="i"><br>
		<br>
		测试用户：<input type=text  placeholder="测试用户"  name="name" id="i"><br>
		<br>
		测试类型：<input type=text  placeholder="测试类型"  name="type" id="i"><br>
		<br>
  		用例内容：<div class="layui-form-item layui-form-text"  >
   			 <div class="layui-input-block" style="margin-left: 0px;">
     		 <textarea name="t1"  placeholder="请输入内容" class="layui-textarea"></textarea>
   		 	 </div>
  		</div>
  		预计结果：<div class="layui-form-item layui-form-text"  >
   			 <div class="layui-input-block" style="margin-left: 0px;">
     		 <textarea name="expectResults"  placeholder="预计结果" class="layui-textarea"></textarea>
   		 	 </div>
  		</div>
  		实际结果：<div class="layui-form-item layui-form-text"  >
   			 <div class="layui-input-block" style="margin-left: 0px;">
     		 <textarea name="actualResults"  placeholder="实际结果" class="layui-textarea"></textarea>
   		 	 </div>
  		</div>
  		

    	
    	
    	<a href="findServlet.do"><input type="submit" value="发表用例" onClick="delcfm()" /></a>
    	<script language="javascript">
            function delcfm() {
                if (!confirm("是否添加用例")) {
                    window.event.returnValue = false;
                }
            } 
        </script>

	</form>
  </div>
  

<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script><!-- 引入jquery文件 因为bootstrap依赖它-->
<script src="bootstrap/js/bootstrap.js"></script>
</body>
</html>